<h1>Listing student_activities</h1>

<table>
  <tr>
    <th>Day</th>
    <th>Name</th>
    <th>Content</th>
    <th>Cm</th>
    <th>Student</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @student_activities.each do |student_activity| %>
  <tr>
    <td><%= student_activity.day %></td>
    <td><%= student_activity.name %></td>
    <td><%= student_activity.content %></td>
    <td><%= student_activity.cm %></td>
    <td><%= student_activity.student_id %></td>
    <td><%= link_to 'Show', student_activity %></td>
    <td><%= link_to 'Edit', edit_student_activity_path(student_activity) %></td>
    <td><%= link_to 'Destroy', student_activity, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Student activity', new_student_activity_path %>
